/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.purpose.service.api;

import com.koron.common.bean.StaffBean;
import com.koron.common.domain.DataBean;
import com.koron.purpose.bean.ContributoryRealityDetailBean;
import org.swan.bean.MessageBean;

import java.util.List;
import java.util.Map;

public interface UsingStandBookService {
    /**
     * 列表查询
     * @param corpCode 水司code
     * @param year 年份
     * @param manager 单位code
     * @param page 当前页
     * @param pageSize 每页条数
     * @return
     */
    MessageBean<DataBean<Map>> queryForList(String corpCode, Integer year, String manager, Integer page, Integer pageSize,String keyword);

    /**
     * 根据ID查询 使用台账
     * @param id
     * @return
     */
    MessageBean<Map> queryById(String id);

    /**
     * 导出 列表查询
     * @param corpCode 水司code
     * @param year 年份
     * @param manager 单位code
     * @return
     */
    List<Map> exportQueryForList(String corpCode, Integer year, String manager);

    /**
     * 保存使用台账
     * @param planId 投入计划ID
     * @param status 状态标记(0-草稿 1-保存)
     * @param realityDetailBean 实际投入明细
     * @param personCode 审批人code
     * @return
     */
    MessageBean save(StaffBean user, String planId, String status, ContributoryRealityDetailBean realityDetailBean, String personCode);
}
